﻿using Abp.EntityFrameworkCore;
using Hicap.AuthorizationServer.Core.Models.Sys;
using Microsoft.EntityFrameworkCore;

namespace Hicap.AuthorizationServer.EntityFrameworkCore
{
    public class AuthorizationServerDbContext : AbpDbContext
    {
        //Add DbSet properties for your entities...

        #region Sys

        public DbSet<Notification> Notification { get; set; }
        public DbSet<User> User { get; set; }
        public DbSet<Role> Role { get; set; }
        public DbSet<UserRoleRelated> UserRoleRelated { get; set; }
        public DbSet<AuthObject> AuthObject { get; set; }
        public DbSet<AuthObjectRoleRelated> AuthObjectRoleRelated { get; set; }
        public DbSet<UserLoginAttempt> UserLoginAttempt { get; set; }

        public DbSet<Company> Company { get; set; }

        #endregion Sys

        public AuthorizationServerDbContext(DbContextOptions<AuthorizationServerDbContext> options)
            : base(options)
        {
        }
    }
}